package com.tyfspring.context.support;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/4/5 9:42
 */

public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext{

    private String[] configLocations;

    public ClassPathXmlApplicationContext() {
    }
    public ClassPathXmlApplicationContext(String configLocations){
        this(new String[]{configLocations});
    }
    public ClassPathXmlApplicationContext(String[] configLocations) {
        this.configLocations = configLocations;
        refresh();
    }

    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }
}
